export default function setLatestDate(schema) {
  const allDates = [...new Set(schema.kuandai_zt.all.map(i => i.date))].sort((a, b) => a - b)
  const maxDate = Math.max(...allDates);
  console.log(`%c 最新一天 ${maxDate}`, 'color:red;')
  console.log(`%c 所有日期 ${allDates}`, 'color:red;')
  window.maxDate = maxDate
  window.allDates = allDates
}